package com.sgzn.sgpay.web.controller.wexi;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by linliangfang 13580393408
 * DATETIME:2018/5/27 19:41
 * Description: 处理微信公众号请求
 */
@Slf4j
@Controller
public class WeiXinController {

    /**
     * 分页查询订单的信息
     * @param request
     * @return
     */
    @RequestMapping("/weixin/callback")
    public String weixinCallback(HttpServletRequest request) {
        log.info("等待微信回调");
        String signature = request.getParameter("signature");
        String timestamp = request.getParameter("timestamp");
        String nonce = request.getParameter("nonce");
        String echostr = request.getParameter("echostr");
        return null;
    }

}
